package com.aote.mvc.event;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.w3c.dom.Element;

import com.browsesoft.htmlcomponent.HTMLBasicComponent;

/**
 * 动作接口
 */
public abstract class Action {
	/**
	 * 对应的组件
	 */
	protected HTMLBasicComponent component;

	public void setComponent(HTMLBasicComponent component) {
		this.component = component;
	}

	/**
	 * 执行动作
	 * 
	 * @param config
	 *            动作在界面上的附加配置
	 */
	public abstract void performAction(Element config,
			HttpServletRequest request, Map attrs);
}
